<?$issue = $this->issue;
$dateFormat = 'Y-m-d';?>
<?if (!empty($this->news)):?>
<ul data-role="pagination" style="z-index: 1000;">
	<li class="ui-pagination-prev"><a class="for-mobile-paginator"  data-direction="slide" href="<?=$this->leftrange?>">Prev</a></li>
	<li class="ui-pagination-next"><a class="for-mobile-paginator"  data-direction="slide" href="<?=$this->rightrange?>">Next</a></li>
</ul>
  <?endif;?>

<ul data-role="listview"  data-inset="true" >
    <?if ($this->message){
             echo "<li>".$this->message."</li>";
         }
     else{

            ?>
                 <?if ($issue):?>

                   <li>
                       <div class="ui-bar ui-bar-b">
                     <? echo "Читайте в номере ".$issue['name']." за ".$issue['date']->format($dateFormat) ?>
                      </div>
                   </li>
                 <?endif;?>

            <?foreach ($this->news as $news):?>

            <li>
                <div class="img" style="float: left;margin-right: 5px;">
                        <a href="/mobile/viewnews/id/<?php echo $news['id'] ?>">
                        <?php if (empty($article['img'])): ?>
                            <img src="http://placehold.it/100x100">
                        <?php else: ?>
                            <img style="height: 100px;width:100px;" src="<?php echo $this->image($news['img']) ?>" alt="<?php echo $news['title'] ?>">
                        <?php endif;  ?>
                        </a>
                    </div>
                <div>
                    <h3 style="line-height: 18px;"><a href="/mobile/viewnews/id/<?php echo $news['id'] ?>">
                                <?= $news['title'] ?>
                            </a></h3>
                     <p><?=$news['introduction']?></p>
                 </div>
                <div style="clear:both;">
            </li>
    <?endforeach;
     }?>
</ul>